package com.lm.spi.example;

import com.lm.spi.inter.GreetingService;
import com.lm.spi.loader.CustomServiceLoader;
import lombok.var;

public class CustomSPIExample {
    public static void main(String[] args) {
        CustomServiceLoader<GreetingService> loader = new CustomServiceLoader<>(GreetingService.class);
        var services = loader.loadServices();
        for (GreetingService service : services) {
            service.sayHello("Custom SPI");
        }
    }
}
